import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)


import Home from '../Pages/Home.vue'
import Main from '../Pages/Main.vue'


// 注: 在vuerouter配置文件中变量名必须遵循规范 routes router
 const routes = [
    { path: '/home', component: Home },
    { path: '/main', component: Main }
]

const router = new VueRouter({
    routes
})

export default router;